#coding:utf-8

"""
CopyRight(c)  2017-09-15  Fraplus Corp

Author: Xiaodong.yang
Email:  xiaodong.yang@unidt.com
Functions:

we chat server

dependence package:

fralog
handler

"""


__author__ = 'Xiaodong.Yang'

import tornado.ioloop
import tornado.web
from tornado.web import RequestHandler
from utils.utils import get_report_html
from utils.utils import *


class ReportsHandler(RequestHandler):
    def options(self, *args, **kwargs):
        pass
    '''
    购买后，将
    '''
    def get(self, *args):
        order_no = self.get_argument('order_no')
        ret = get_report_html(order_no)
        print(ret)
        rf = 'static/' + order_no + '-rp.html';
        self.redirect('http://{0}:8888/{1}'.format(IP, rf))
